package com.guit.hrms.service;

import com.guit.hrms.po.Employee;
import com.guit.hrms.po.WeChatSession;


public interface LoginService {
    /**
     * 登录
     */
    Employee login(String employeeId, String password);

    /**
     * 获取微信session(微信登录)
     * @param code 微信code
     * @return 微信session
     */
    WeChatSession getWeChatSession(String code);

    /**
     * 绑定微信
     * @param employeeId 员工id
     * @param openid 微信openid
     * @return  绑定结果
     */
    Integer bindWeChat(String employeeId, String openid);

    /**
     * 微信登录
     *
     * @param employeeId 员工id
     * @param password   密码
     * @param openid     微信openid
     * @return 登录结果
     */
    Employee wxLogin(String employeeId, String password, String openid);
}
